<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>简介</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.sockets.html">Sockets</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sockets.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.sockets.html">Sockets</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intro.sockets" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   The socket extension implements a low-level interface to the socket
   communication functions based on the popular BSD sockets, providing the
   possibility to act as a socket server as well as a client.
  </p>
  <p class="para">
   For a more generic client-side socket interface, see
   <span class="function"><a href="function.stream-socket-client.html" class="function">stream_socket_client()</a></span>, 
   <span class="function"><a href="function.stream-socket-server.html" class="function">stream_socket_server()</a></span>,
   <span class="function"><a href="function.fsockopen.html" class="function">fsockopen()</a></span>, and
   <span class="function"><a href="function.pfsockopen.html" class="function">pfsockopen()</a></span>.
  </p>
  <p class="para">
   When using these functions, it is important to remember that while
   many of them have identical names to their C counterparts, they
   often have different declarations. Please be sure to read the
   descriptions to avoid confusion.
  </p>
  <p class="para">
   Those unfamiliar with socket programming can find a lot
   of useful material in the appropriate Unix man pages, and there is a great
   deal of tutorial information on socket programming in C on the web, much
   of which can be applied, with slight modifications, to socket programming
   in PHP. The <a href="http://www.unixguide.net/network/socketfaq/" class="link external">&raquo;&nbsp;Unix Socket
   FAQ</a> might be a good start.
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.sockets.html">Sockets</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sockets.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.sockets.html">Sockets</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
